<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>编辑属性</title>
<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'Attribute/index'}">类型属性列表</a></li>
			</ul>
		</div>
		<form action="" method="post" class="hd-form">
		<div class="title-header">编辑属性</div>
		<input type="hidden" name="attr_id" value="{$data.attr_id}">
			<table class="table1">
				<tr>
					<th class="w200">属性名称</th>
					<td>
						<input type="text" name="attr_name" class="w200" value="{$data.attr_name}" />
					</td>
				</tr>
				<tr>
					<th>商品类型</th>
					<td>
						<select name="cat_id">
						<list from="$goods_type" name="$gt">
							<option value="{$gt.cat_id}"  <if value="{$gt.cat_id} eq {$cat_id}">selected=""</if>>{$gt.cat_name}</option>
						</list>
						</select>
					</td>
				</tr>
				<tr>
					<th class="w200">属性类型</th>
					<td>
						<label><input type="radio" name="attr_type" class="w30" value="0" <if value="{$data.attr_type} eq 0">checked=""</if>/>普通属性</label>
						<label><input type="radio" name="attr_type" class="w30" value="1" <if value="{$data.attr_type} eq 1">checked=""</if>/>规格属性</label>
						<span style="font-size: 10px;color: #F00;text-indent: 2em;display: inline-block;">*规格属性用于指定某一商品</span>
					</td>
				</tr>
				<tr>
					<th class="w200">录入方式</th>
					<td>
						<lable><input type="radio" name="attr_input_type" class="w30" value="0"  <if value="{$data.attr_input_type} eq 0">checked=""</if>/>文本框</lable>
						<lable><input type="radio" name="attr_input_type" class="w30" value="1" <if value="{$data.attr_input_type} eq 1">checked=""</if>/>下拉列表框</lable>
						<lable><input type="radio" name="attr_input_type" class="w30" value="2" <if value="{$data.attr_input_type} eq 2">checked=""</if>/>文本域</lable>
						<span style="font-size: 10px;color: #F00;text-indent: 2em;display: inline-block;">*选择下拉列表框必须输入默认值</span>
					</td>
				</tr>
				<tr>
					<th>属性值</th>
					<td>
						<textarea name="attr_value" class="w300 h100" style="resize:none;">{$data.attr_value}</textarea>
						<span style="font-size: 10px;color: #F00;margin-left:10px;display: none;" class="areaTips">*一行输入一个值</span>
					</td>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="提交修改" class="hd-success"></td>
				</tr>
			</table>
		</form>
	</div>
	<js file="__CONTROLLER_VIEW__/js/js.js"/>
</body>
</html>